<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" 
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" encoding="ISO-8859-1" indent="yes"/>

    <xsl:template match="/PLANETES">
        <html>
            <head>
                <title>
                    Le tableau des plantes
                </title>
            </head>
            <body>
                <h1>
                    Le tableau des plantes
                </h1>
                <table>
                    <tr>
                        <td>Nom</td>
                        <td>Masse</td>
                        <td>Rayon</td>
                        <td>Jour</td>
                    </tr>
                    <xsl:apply-templates/>
                </table>
            </body>
        </html>
    </xsl:template>
    
    <xsl:template match="PLANETE">
       <tr>
          <td><xsl:value-of select="NOM"/></td>
          <td><xsl:apply-templates select="MASSE"/></td>
          <td><xsl:apply-templates select="RAYON"/></td>
          <td><xsl:apply-templates select="JOUR"/></td>
       </tr>
   </xsl:template>
    
    <xsl:template match="MASSE">
        <xsl:value-of select="."/>
        <xsl:text> </xsl:text>
        <xsl:value-of select="@UNITE"/>
    </xsl:template>

    <xsl:template match="RAYON">
        <xsl:value-of select="."/>
        <xsl:text> </xsl:text>
        <xsl:value-of select="@UNITE"/>
    </xsl:template>
    
    <xsl:template match="JOUR">
        <xsl:value-of select="."/>
        <xsl:text> </xsl:text>
        <xsl:value-of select="@UNITE"/>
    </xsl:template>
    
</xsl:stylesheet>
